package com.kaibes.module.security.client;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.kaibes.web.feign.FeignConfig;

@FeignClient(value = "${kaibes.module.security.client.service-name}", configuration = FeignConfig.class)
public interface SecurityClient {

    @GetMapping("${kaibes.module.security.client.authority-uri:/authoritis}/{roleId:\\d+}")
    List<String> listByRoleId(@PathVariable Integer roleId);
    
}
